package com.center.biz.impl;

import com.center.api.model.EduMsgReceive;
import com.center.api.remote.RemoteEduMsgReceiveService;
import com.center.biz.dao.EduMsgReceiveMapper;
import org.apache.dubbo.config.annotation.Service;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

@Service(version = "1.0",interfaceClass = RemoteEduMsgReceiveService.class)
public class RemoteEduMsgReceiveServiceImpl implements RemoteEduMsgReceiveService {

    @Autowired
    private EduMsgReceiveMapper eduMsgReceiveMapper;

    @Override
    public int save(EduMsgReceive eduMsgReceive) {
        return eduMsgReceiveMapper.insertSelective(eduMsgReceive);
    }

    @Override
    public int update(EduMsgReceive eduMsgReceive) {
        return eduMsgReceiveMapper.updateByPrimaryKeySelective(eduMsgReceive);
    }

    @Override
    public int delete(int id) {
        return eduMsgReceiveMapper.deleteByPrimaryKey(id);
    }

    @Override
    public EduMsgReceive getById(int id) {
        return eduMsgReceiveMapper.selectByPrimaryKey(id);
    }

    @Override
    public List<EduMsgReceive> select(EduMsgReceive eduMsgReceive) {
        return null;
    }
}
